package api

import (
	"class_bff/controller"
	"class_bff/middleware"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	router := gin.Default()
	router.Use(middleware.UserAuth())
	router.POST("/release/class", controller.ReleaseClass)    //发布课程
	router.GET("/class/list/by/es", controller.ClassListByEs) //es搜索列表
	router.POST("/class/comment", controller.ClassComment)    //添加评论
	return router
}
